home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 22 / AACD 22.iso / AACD / Online / Apache / include / php / Zend / zend_highlight.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-10-31  |  2.2 KB  |  52 lines

  1. /*
  2.    +----------------------------------------------------------------------+
  3.    | Zend Engine                                                          |
  4.    +----------------------------------------------------------------------+
  5.    | Copyright (c) 1998-2000 Zend Technologies Ltd. (http://www.zend.com) |
  6.    +----------------------------------------------------------------------+
  7.    | This source file is subject to version 0.92 of the Zend license,     |
  8.    | that is bundled with this package in the file LICENSE, and is        | 
  9.    | available at through the world-wide-web at                           |
  10.    | http://www.zend.com/license/0_92.txt.                                |
  11.    | If you did not receive a copy of the Zend license and are unable to  |
  12.    | obtain it through the world-wide-web, please send a note to          |
  13.    | license@zend.com so we can mail you a copy immediately.              |
  14.    +----------------------------------------------------------------------+
  15.    | Authors: Andi Gutmans <andi@zend.com>                                |
  16.    |          Zeev Suraski <zeev@zend.com>                                |
  17.    +----------------------------------------------------------------------+
  18. */
  19.  
  20.  
  21. #ifndef ZEND_HIGHLIGHT_H
  22. #define ZEND_HIGHLIGHT_H
  23.  
  24. #define HL_COMMENT_COLOR     "#FF8000"    /* orange */
  25. #define HL_DEFAULT_COLOR     "#0000BB"    /* blue */
  26. #define HL_HTML_COLOR        "#000000"    /* black */
  27. #define HL_STRING_COLOR      "#DD0000"    /* red */
  28. #define HL_BG_COLOR          "#FFFFFF"    /* white */
  29. #define HL_KEYWORD_COLOR     "#007700"    /* green */
  30.  
  31.  
  32. typedef struct _zend_syntax_highlighter_ini {
  33.     char *highlight_html;
  34.     char *highlight_comment;
  35.     char *highlight_default;
  36.     char *highlight_string;
  37.     char *highlight_keyword;
  38. } zend_syntax_highlighter_ini;
  39.  
  40.  
  41. BEGIN_EXTERN_C()
  42. ZEND_API void zend_highlight(zend_syntax_highlighter_ini *syntax_highlighter_ini);
  43. ZEND_API int highlight_file(char *filename, zend_syntax_highlighter_ini *syntax_highlighter_ini);
  44. ZEND_API int highlight_string(zval *str, zend_syntax_highlighter_ini *syntax_highlighter_ini, char *str_name);
  45. ZEND_API void zend_html_putc(char c);
  46. ZEND_API void zend_html_puts(char *s, uint len);
  47. END_EXTERN_C()
  48.  
  49. extern zend_syntax_highlighter_ini syntax_highlighter_ini;
  50.  
  51. #endif
  52.